package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 没有@RefreshScope 批注的是否会刷新
 */
@RestController
public class OtherController {

    @Value("${other}")
    private String other;

    @GetMapping("/other")
    public String view() {
        return this.other;
    }
}
